//
//  GWNavigaitionView.h
//  shandsHotel
//
//  Created by zh_s on 2018/9/25.
//  Copyright © 2018年 zh_s. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol GWNavigationViewDelegate;

@interface GWNavigaitionView : UIView

@property (nonatomic,weak)id<GWNavigationViewDelegate> delegate;

@property (nonatomic,strong)UIImageView *backImageView;

@property (nonatomic,strong)UIView *rightView;

@property (nonatomic,strong)UILabel *titleLabel;

@property (nonatomic,copy)NSString *rightTitle;

@property (nonatomic,copy)NSString *leftTitle;

@property (nonatomic,strong)UIView *titleView;

@property (nonatomic,strong)UIView *leftView;

@property (nonatomic,strong)UIColor *backgroundColor;

/**自定义导航栏初始化方法*/
- (instancetype)initWithTitle:(NSString *)title withLeftTitle:(NSString *)leftTitle;

@end

@protocol GWNavigationViewDelegate <NSObject>
@optional
/**导航栏左侧按钮点击事件*/
- (void)leftViewClick;
/**导航栏右侧按钮点击事件*/
- (void)rightViewClick;
@end
